In each of the equations, manipulate it to get just one variable on one side. Plug the expression back into the expressions.
For example, we know that p/q=5/6. Multiplying boths ides by q, this gives p=5q6. Plugging this back into p−qq−r will give 5q6−qq−r.