.
the hypotenuse of a right triangle is 6 cm. One side is 2cm longer than the other.
Find the length of the two sides of this right-angle triangle.
~~~~~~~~~~~~~~~~~~
This problem has a huge underwater stone.
I will explain you about it.
The problem says "one side is 2 m longer than the other side",
but we DON'T KNOW what these two sides are.
They can be two legs of the right angled triangle --- it is the case considered by @MathLover1.
But it may happen, too, that of these two sides, the longer side is the hypotenuse, while the
shorter side is one of the legs.
It is the case MISSED by @MathLover1.
In this case, "one side" is the hypotenuse of the length of 6 cm, and "the other side" is this leg of the length of 6-2 = 4 cm.