Write down the solution for this math problem: Solve g + 2 = 4 for g.
2