What is the solution?

Solve 51*g - 1342 + 292 = 123 for g.
23