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