Subtract from both sides of the equation.

Subtract from .

Subtract from both sides of the equation.

Subtract from .

Divide each term in by .

Cancel the common factor of .

Cancel the common factor.

Divide by .

Divide by .

Solve for g 5g+2=3g+12