Solve this math problem

Solve 11161*w - 15239 + 39374 = 2888*w - 116506 for w.
-17