The distance between the points A and B is calculated by,
d = √(x2 - x1)² + √(y2 - y1)²
d = √(5 - 2)² + √(0 - 5)² = 5.83
From the Pythagorean theorem,
a² + b² = c²
5.83² + (7 - 2)² + (y - 5)² = (7 - 5)² + (y - 0)²
From the equation, the value of y is 8. Therefore, the ordinate of the point is 8 and the answer is letter C.