math
posted by ted .
the hypothenus of a right angle triangle is 6cm with respect to the other two sides, one is 2cm longer than the other. Find the length of the two other sides to the nearest tenth.
when i worked out this question, I got the answer as X=5.1 or X=3.1
is my answer right, if it is not right .can you pls tell me and then explain to me where i went wrong.
Thank you.

6^2=x^2+(x+2)^2
solve for x
36=x^2+x^2+4x+4
2x^2+4x32=0
x^2+2x16=0
x= (2+sqrt(4+64))/2=1+sqrt17
x=1+4.17
then, since it makes no sense for x to be negative, the x=3.17, and the last side then is 5.17