the triangle is a right angle triangle
let the longest leg = x
The shortest leg = x-7cm, since it is 7cm shorter that the longest leg
The Hypotenuse is 17 cm
Therefore in a right angle triangle
172 = x2 + ( x-7)2 , 289 = ( x2 + x2 -14x + 49) = (2x2 -14x +49)
Rearranging, 2x2-14x +49 -289 = 0
2x2-14x -240 = 0 Divide both sides by 2, x2-7x- 120 =0
factoring ( x-15)(x+8)=0, the two roots are x=15, and x=-8
Therefore the long side x=15cm, the short side is x-7 = 15-7 = 8cm
Proof: the hypotenuse is 17cm = √(152+82) = 17cm