Answer:
The hypotenuse is 13 cm
The longest leg is 12 cm
The shortest leg is 5 cm
Explanation:
Given:
A right triangle
Let's assume, that the longest leg is x, the shortest leg is y and the hypotenuse is z
Let's write 2 equations according to the given information and put them into a system (use the Pythagorean theorem):

{√(x^2 + y^2) = x + 1,
{x - y = 7;
Let's make x the subject from the 2nd equation:
x = 7 + y
Replace x in the 1st equation with its value from the 2nd one:


Square both sides of the equation:


Move the expression to the left and collect like-terms:

a = 1, b = -2, c = -15
Solve this quadratic equation:


y must be a natural number, since the length of a triangle's side cannot have negative units

We found the length of the shortest leg
Now, we can find the rest of the dimensions:
x = 7 + 5 = 12
