I've been stuck on this for far too long, but it isn't proved in my lecture notes so it's supposed to be elementary...
Let $x, y, z$ be integers such that $x$ divides $z$, $y$ divides $z$ and $x$ and $y$ are relatively prime, then $xy$ divides $z$.
Thanks a lot !