Solve this math problem

Solve -1162 = -279*g + 362*g for g.
-14