$$ \begin{aligned} -35 &= -5-x&& \text{ swap the left and right side of the equation } \\[1 em]-5-x &= -35&& \text{ move -5 to the right } \\[1 em]-x &= -35+5&& \\[1 em]-x &= -30&& \text{switch signs on both sides} \\[1 em]x &= 30&& \\[1 em] \end{aligned} $$