To solve for a variable, you isolate that variable on one side of the equation and get everything else on the opposite side.
You isolate the variable by undoing all the operations done to the variable.
In the equation x = 3g + 2, the g variable is being multiplied by 3 and added to 2.
We will have to undo all these operations to arrive at our answer.
And remember! Anything you do on one side, you do on the opposite side!
x = 3g + 2
x - 2 = 3g <--- To get rid of 2, I subtracted 2 from each side.
3g = x - 2 <--- I just flipped the equation around.
The math term is called the reflexive property.
g = (x - 2) / 3 <--- The g variable was being multiplied by 3.
I reversed the operation by dividing both sides
by 3.
So, g is equal to (x - 2) / 3