Suppose that $(a,m)=1$ and $(b,n)=1$, where $(x,y)$ denotes the greatest common divisor of $x$ and $y$. Show that if $$ c \equiv a \pmod{m} \\ c \equiv b \pmod{n} \\ $$ then $(c,mn)=1$.
I've tried to make this connection but the solution is eluding me.
Suppose to the contrary that $(c,mn)\gt 1$. Then there is a prime $p$ that divides $c$ amd $mn$.
Since $p$ divides $mn$, it divides at least one of $m$ or $n$, say $m$.
Since $c\equiv a\pmod{m}$, $c=a+qm$ for some $q$. It $p$ divides $m$ and $c$, then $p$ divides $a$.
Thus $p$ divides $a$ and $m$, contradicting the fact that $(a,m)=1$.