$$ \begin{aligned} 8x-5 &= 7x+7&& \text{move the $ \color{blue}{ 7x } $ to the left side and $ \color{blue}{ -5 }$ to the right} \\[1 em]8x-7x &= 7+5&& \text{simplify left and right hand side} \\[1 em]x &= 12&& \\[1 em]x &= 12&& \\[1 em] \end{aligned} $$