Solve this math problem

Solve -336*g + 327*g = 1361*g - 43909 - 30071 for g.
54