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