r =
Cross multiplying both sides it would be p=r√q
Now square, p2 =r2q, which is the required result.
****