What is the solution to this math problem?
Solve 24141 = -345*g + 8923 - 15487 for g.
-89