Solve for p. We are given:

To get rid of the fraction on the right, multiply both sides by the denominator, which is r.

We then get:

We are solving for p, so add q to both sides to isolate p on the right side. We are then left with:

You could switch the equation to make it look more traditional. However, both answers are correct.
