Solve 670*w + 11769 + 12296 = 7974 - 18079 for w.
-51