R has coordinates (x,0) as it lies on the real axis, and since we want PRQ to be a right angle triangle that means angle PRQ is 90 degrees which means we want the gradient of QR x gradient of PR = -1, and this will gives us a quadratic in x which when solved gives us x to be -5 and 3, try this...