What is the solution to this math problem?
Solve 1678*g - 395*g = -271*g + 27900 + 35814 for g.
41