Solve this math problem

Solve 0 = 127*g - 479*g + 12398 - 4570 + 4844 for g.
36