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