Write down the solution for this math problem: Solve 0 = 99*w - 245*w + 876 for w.
6