y = [tex]\frac{a+w}{a-w}[/tex]); solve for w

the answer is w = [tex]\frac{a(y-1)}{y+1}[/tex]); a ≠ w, y ≠ 1

I know the answer but I'd like to know how to get the answer please.