In a right triangle, the lengths of the legs are x and 2x. If the hypotenuse has a length of 35 units, what is the value of x?
1
3
5
9