Answer:
[tex]g = \frac{x}{3}-\frac{2}{3}[/tex]
Step-by-step explanation:
[tex]x = 3g + 2\\\rule{150}{0.5}\\\\x - 2 = 3g + 2 - 2\\\\x - 2 = 3g\\\\\frac{x-2=3g}{3}\\\\\boxed{\frac{x}{3}-\frac{2}{3} = g}[/tex]
Hope this helps.