Math problem: Solve -164 = -7*w - 27 - 74 for w.
What is the solution?
9