To answer this question we draw a diagram to help us:
In this diagram we let x be the length of the shorter leg, then we use the information given. Now using the pythagorean theorem we get the equation:
Solving for x we have:
Since x is a lenght and lengths can't be negative we conclude that x=9. Once we know the value of x we plug it on the expression for the larger leg and the hypotenuse.
For the larger leg we have:
For the hypotenuse we have:
Therefore we conclude that:
Small leg is 9
Large leg is 40
Hypotenuse is 41