
Since we need to solve for r we have to leave that variable alone in one side of the equation. We notice that at is adding in the right side, then it goes to the left side substracting, that is:

Therefore:

in the last part we only switch the sides of the equation.