What is the solution to this math problem?
Solve -496 + 161 = 80*w + 945 for w.
-16