If a right triangle has legs of #x# and #3x# and a hypotenuse of #10#, what is the value of #x#?