Explanation:
x=3g+2
you need to move the equation to the other side, first you'd start with the one furtherest from g, which is is 2.
x = 3g
-2. - 2
and minus it from both sides
x-2=3g
3g is like 3x, which is 3 times x and you need to use the opposite operators so times would become divide.
so now it becomes x-2 over 3=g