I have a question about tensor products. When $n$ and $m$ are positive integers with greatest common divisor $d$, how do I prove that: $$(\Bbb Z/n\Bbb Z)\otimes_{\Bbb Z}(\Bbb Z/m\Bbb Z)\cong\Bbb Z/d\Bbb Z.$$
I have tried creating an isomorphism from scratch, or tried to prove that most elements of the tensor product are equal to zero in some way but I cannot figure it out.