Answer:

===============================================
Work Shown:

Step-by-step explanation:
In the second step, I multiplied both sides by r to move it to the left side. Then I divided both sides by p to isolate r.
In short, the r and p swap places.