$$ \begin{aligned} 4x-10 &= 5x+7&& \text{move the $ \color{blue}{ 5x } $ to the left side and $ \color{blue}{ -10 }$ to the right} \\[1 em]4x-5x &= 7+10&& \text{simplify left and right hand side} \\[1 em]-x &= 17&& \text{switch signs on both sides} \\[1 em]x &= -17&& \\[1 em] \end{aligned} $$