The hypotenuse of a right triangle is 8 more than the shorter leg. The longer leg is 4 more than the shorter leg. Find the length of the shorter leg.

i know your supposed to set up the equation like:

(x+8)^2 = x^2 + (x+4)^2 and then solve for x

however, i keep getting that x = sqrt(48)..which is wrong.