Math problem: Solve -31300*w = -31344*w - 2237 + 477 for w.
What is the solution?
-40