Math problem: Solve 3316 = 478*w - 5288 for w.
What is the solution?
18