Solve this math problem

Solve 1729 = -73*g + 20*g + 351 for g.
-26