# Lengths of sides of a right-angle triangle [closed]

Let's have a right angle triangle. The sides have lengths equal to rational numbers. The area of the triangle is equal to 39, the length of the hypotenuse is 31.3 and the difference of the other two sides is 28.7. What are the lengths of these two sides?

• Why is this a puzzle? It's the solution of two simultaneous equations, which give a quadratic equation to solve, and has a redundant piece of information. It's straight forward math. Commented Mar 26, 2023 at 21:24
• even chatgpt can solve this :)
– Oray
Commented Mar 26, 2023 at 21:43
• In addition to being soluble with any two of the three numerical values, we can also solve without knowing that the lengths are rational. I’m unable to discern an especially elegant way of using the information. Commented Mar 26, 2023 at 22:31

This is a simple algebra exercise. Combining $$b - a = 28.7$$ with $$a \cdot b = 2 \cdot 39$$ gives $$a^2 + 28.7 a - 78 = 0$$. Solving this quadratic gives $$a=2.5$$, $$b=31.2$$ as the only possible answer, and you can use the hypotenuse information to double check that this is the correct solution. Not really much of a puzzle, more of a homework problem.