What is the solution to this math problem?
Solve -151 + 39 = 9*w - 663 - 223 for w.
86