Write down the solution for this math problem: Solve 49*w + 717 = 1109 for w.
8