Write down the solution for this math problem: Solve 3547 + 17917 + 6718 = 366*w for w.
77