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