$$ \begin{aligned} -18 &= 6+2k&& \text{ swap the left and right side of the equation } \\[1 em]6+2k &= -18&& \text{ move 6 to the right } \\[1 em]2k &= -18-6&& \\[1 em]2k &= -24&& \text{ divide both sides by $ 2 $ } \\[1 em]k &= -\frac{24}{2}&& \\[1 em]k &= -12&& \\[1 em] \end{aligned} $$