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