You can
put this solution on YOUR website!hyp=2.4
let l=longer leg, s= shorter leg
l=1.7+s
From the Pythagorean Theorem, a^2+b^2=c^2, c=hypotenuse.

Normally we would continue here by applying the quadratic formula, however I see a factorization to make it easier:

The only answer that makes sense (that is, it is positive), is

.
So, l=1.7+s=1.7+.618843=2.31884.
Now, check:

and

. This completes the problem.