What is the solution?

Solve 40 = -16*g + 8*g for g.
-5