Jeffrey K. answered 09/23/20
Hi, Alex. Here's how to do it.
Let the hypotenuse's length be h.
Then, the other 2 legs are h - 2 and h - 7, respectively.
By Pythagoras, (h - 2)2 + (h - 7)2 = h2
(h2 - 4h + 4) + (h2 -14h + 49) = h2
2h2 - 18h + 53 = h2
h2 - 18h + 53 = 0 This is a quadratic which we must solve by the quadratic formula
h = (18 ± √(182 - 4(1)(53))) / 2
= (18 ± √(224 - 212)) / 2
= (18 ± √12) / 2
= 9 + √3 or 9 -√3
= 10.73 cm or 7.27 cm
If the hypotenuse is 10.73 cm, the other 2 sides are 8.73 and 3.73 cm, respectively.
If the hypotenuse is 7.27 cm, the other 2 sides are 5.27 and 0.27 cm, respectively.