Let $a,b,r,s$ be given constants. Prove that the arithmetic progressions $\{ax + r : x \in \Bbb Z\}$ and $\{by + s : y \in \Bbb Z\}$ intersect if and only if $\gcd(a, b) \mid (s − r)$.
I supposed that the two intersect. Which gives $ax+r=by+s$. I believe that there's a point where they're equal, thus, some $x$ and $y$ exist such that $ax+r=by+s$ is true. Rearranging the equation yields you with $ax-by=s-r$. I know that $ax-by=\gcd(a,b)$. Now, I am just lost on how to compute the gcd(a,b).
Thank you for your time.