Solve this math problem

Solve 701*w = -1357*w - 509*w - 422*w + 152439 for w.
51