Solve this math problem

Solve -241*w + 343912 - 28922 = -5087*w for w.
-65