$$ \begin{aligned} 10 &= 2m+2&& \text{ swap the left and right side of the equation } \\[1 em]2m+2 &= 10&& \text{ move 2 to the right } \\[1 em]2m &= 10-2&& \\[1 em]2m &= 8&& \text{ divide both sides by $ 2 $ } \\[1 em]m &= \frac{8}{2}&& \\[1 em]m &= 4&& \\[1 em] \end{aligned} $$