What is the solution to this math problem?
Solve 1347*w + 1049 - 49541 = 0 for w.
36