Let the length of one side of the right triangle be x cm
So, the other side will be = (x + 5) cm [as they differ by 5cm]
And given that hypotenuse = 25 cm
On applying Pythagoras Theorem, we have
x2 + (x + 5)2 = 252
x2 + x2 + 10x + 25 = 625
2x2 + 10x + 25 – 625 = 0
2x2 + 10x – 600 = 0
x2 + 5x – 300 = 0
x2 – 15x + 20x – 300 = 0 [By factorisation method]
x(x – 15) + 20(x -15) = 0
(x – 15)(x + 20) = 0
x = 15 or x = – 20 (neglected) As the side of triangle can never be negative.
Thus, when x = 15 ⇒ x + 5 = 15 + 5 = 20
Hence, the length of side of right triangle is 15 cm and other side is 20 cm