wy - ma = ay/n for y
Subtract ay/n from each side:
wy - ma - ay/n = ay/n - ay/n
wy - ma - ay/n = 0
Now add ma to each side:
wy - ay/n = ma
Factor out y:
y(w - a/n) = ma
Divide each side by (w - a/n)
y = ma/(w - a/n)
Subtract ay/n from each side:
wy - ma - ay/n = ay/n - ay/n
wy - ma - ay/n = 0
Now add ma to each side:
wy - ay/n = ma
Factor out y:
y(w - a/n) = ma
Divide each side by (w - a/n)
y = ma/(w - a/n)