I'm having trouble understanding this question and the answer
I know that if $GCD(z,n) = GCD(w,n) = 1$, that says that both $z^{-1}$ and $w^{-1}$ exist, but I'm unsure of the rest of the problem. I thought that if we could equate $z^{-1} = w^{-1}$ then we could say that multiplying both $x$ and $y$ by the same number wouldn't change their congruence, but I tried it with real numbers and of course that did not work.
EDIT: After coming back to this question, I'm afraid I don't understand the previously accepted answer. We didn't learn about modular arithmetic in terms of roots in our class, and I'm beginning to think there's a much simpler solution to this as these exams allot about 1 min / question. Any attempts to explain this in a different way would be much appreciated.
