Solve this math problem

Solve 50767 + 9947 = -756*w - 1740 + 1218 for w.
-81