$$ \begin{aligned} -4 &= w+5-4&& \text{simplify right side} \\[1 em]-4 &= w+1&& \text{ swap the left and right side of the equation } \\[1 em]w+1 &= -4&& \text{ move 1 to the right } \\[1 em]w &= -4-1&& \\[1 em]w &= -5&& \\[1 em]w &= -5&& \\[1 em] \end{aligned} $$