Solve this math problem

Solve -547*g - 271*g - 109*g + 12396 = 106*g for g.
12