What is the solution?

Solve -42 = -64*g + 22 for g.
1