Let l be the length of the longer leg, s be the length of the shorter leg, and h be the length of the hypotenuse, then we can set the following equations:
Using the Pythagorean theorem we get:
Substituting the first and second equation in the above one we get:
Solving for s we get:
Substituting s=8cm in the first and second equation we get:
Answer:
Length of the shorter leg: 8cm.
Length of the longer leg: 15cm.
Length of the hypotenuse: 17cm.