Let us consider a congruence of the form: $$x≡(xy) \bmod z$$
Then the question is: How one can find $y$ in terms of $x$ and $z$
Let us consider a congruence of the form: $$x≡(xy) \bmod z$$
Then the question is: How one can find $y$ in terms of $x$ and $z$
Well, if $x$ is not a zero divisor in $\Bbb Z_z$, i.e., $gcd(x,z)=1$ and so $x$ is a unit in $\Bbb Z_z$, the shortening rule can be applied in $\Bbb Z_z$:
$x\cdot 1 = x\cdot y \Rightarrow y=1$
or you can multiply $x=xy$ in $\Bbb Z_z$ with $x^{-1}$.