We can see that right triangle ABC has
1) leg AB, that is a side of the square X, side of the square X, AB= √25,
2) leg BC that is a side of the square Y, side of the square Y, BC = √144,
3) hypotenuse AC that is a side of the square Z, side of the square Z, AC = √169.
For right triangle we can use Pythagorean Theorem.
(leg1)² + (leg2)² = hypotenuse²
(AB)² + (BC)² = (AC)²
(√25)² + (√144)² = (√169)²
25 +144=169.
So, we have (AB)² + (BC)² = (AC)² and 25 +144=169.
Answer is D. (AB)² + (BC)² = (AC)² because 25 +144=169.