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