Multiply both sides by [tex]a-w[/tex]:
[tex]y(a-w)=\dfrac{(a+w)(a-w)}{a-w}[/tex]
Then as long as [tex]a\neq w[/tex], we can cancel both factors of [tex]a-w[/tex] on the right:
[tex]y(a-w)=a+w[/tex]
Distribute the [tex]y[/tex] on the left side:
[tex]ya-yw=a+w[/tex]
and group all the terms containing [tex]w[/tex] on one side:
[tex]yw+w=ya-a[/tex]
We can factorize both sides:
[tex]w(y+1)=a(y-1)[/tex]
then divide both sides by [tex]y+1[/tex] and solve for [tex]w[/tex]:
[tex]w=\dfrac{a(y-1)}{y+1}[/tex]