Solve this math problem

Solve -244*w = -1371*w - 38318 for w.
-34