For ease of calculation, let's rotate the figure a bit so that both the point O (center of the circle) and the point P are on the y-axis.
Q (x, y) is on the left side of the circle. Therefore, x^2 + y^2 = 5; wherein x is between 0 and -5; y is between 5 and -5 (on the left side of the circle). The distance (D) between P and Q is the square root of [x^2 + (13-y)^2]. To find the maximum value for this value D, we just need to find the maximum value for [x^2 + (13-y)^2]. [x^2 + (13-y)^2] = x^2 + 13^2 - 26y + y^2 = 169 + (x^2 + y^2) - 26y = 169 + 25 - 26y
Apparently the value of D depends the value of y. So the minimum of D is when y = 5; and the maximum of D is when y = -5.
Back to the REAL question, the answer is similar if you know a bit of symmetry and logic. The maximum of PQ will be reached when Q is at the lowest, possible value of y.