Oh okay, so does p = OP, q=OQ and r=OR?Have another look at the formula you have been given. You have said p=vector PQ, etc but that is NOT p.
p is the position vector of point P.
Have another go.
Here's the updated working but I'm not sure what to do from hereO
Oh okay, so does p = OP, q=OQ and r=OR?
From here how do I solve for d without trial and error?