On the X-Y plane, the points p and r are on the vertical line X=x. Then the perpendicular (horizontal) line through p will have the equation Y=y. Points q on that line will have coordinates
... q(<anything>, y)
Put it in the calculator and the answer is 3.4305