Math problem: Solve 12*g + 40*g = 36*g + 144 for g.
What is the solution?
9