Let the base and altitude of the right-angled triangle be x and y cm, respectively
Therefore, the hypotenuse will be (x + 2) cm.
∴ (x + 2)2 = y2 + x2........(i)
Again, the hypotenuse exceeds twice the length of the altitude by 1 cm.
∴ h = (2y + 1)
⇒ x + 2 = 2y + 1
⇒ x = 2y - 1
Putting the value of x in (i), we get:

Thus, the base, altitude and hypotenuse of the triangle are 15 cm, 8 cm and 17 cm, respectively.