Solve this math problem

Solve 7615 = 393*g - 2974 - 4544 + 985 for g.
36