-17 as negative values become less as its debt.
5/2=40/16. You can try to cross multiply by 2 times 40 and dividing by 16 to get 5.
First, multiply both sides by m:
s*m = w - 10e
Then add 10e to both sides to isolate w:
s*m + 10e = w
or
w = s*m + 10e