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