Solve for p 2p+5r=q for p