I was doing the following question and wonder if my proof below is valid
Prove that $\frac{x+z}{y+z} > \frac{x}{y} \to x<y$ if and only if $x<y$
To prove that $\frac{x+z}{y+z} > \frac{x}{y} \to x<y$
$$(x+z)y > (y+z)x$$
$$xy+zy > xy + xz$$
$$zy > xz$$
$$y>x$$
Was I allowed to divide both sides by $z$?
And to prove the other direction, am I able to just write down the previous proof in the reverse direction? (i.e. start with $y>x$
Any hints wouldbe appreciated!