If $\gcd(a,b)=1$, $\gcd(a,y)=1$ and $\gcd(b,x)=1$ then prove that $ax+by$ is prime to $ab$.
I tried assuming Diophantine Equations for all the relations and representing everything in terms of $a$, but that didn't lead me anywhere. There must be an intuitive and elegant approach right?
$$gcd(ax+by, ab) | gcd(ax+by, a) gcd(ax+by, b).$$ On the other hand, $$gcd(ax+by, a)=gcd(by, a) | gcd(b, a)gcd(y, a) = 1,$$ similarly $gcd(ax+by, b)|1$. Thus $$gcd(ax+by, ab) | 1, $$ which implies $$gcd(ax+by, ab) = 1.$$