$$ \begin{aligned} 5+g &= 5g-7&& \text{move the $ \color{blue}{ 5g } $ to the left side and $ \color{blue}{ 5 }$ to the right} \\[1 em]g-5g &= -7-5&& \text{simplify left and right hand side} \\[1 em]-4g &= -12&& \text{ divide both sides by $ -4 $ } \\[1 em]g &= \frac{-12}{-4}&& \\[1 em]g &= 3&& \\[1 em] \end{aligned} $$
This page was created using
Equations Solver