In a right triangle, the length of the hypotenuse is the square root of the sum of the squares of the other two legs. Therefore, we can use the Pythagorean theorem to find the length of the legs of a right triangle given the length of the hypotenuse.
Pythagorean theorem: c^2 = a^2 + b^2
where c is the hypotenuse and a and b are the legs of the right triangle.
If the length of the longer leg is x, then the length of the other leg is 2x.
Using the Pythagorean theorem:
25^2 = x^2 + (2x)^2
625 = x^2 + 4x^2
625 = 5x^2
x = √(625/5) = √125 = 5
So, the length of the longer leg is 5 units.