A right triangle has legs of length x and x+7. If the hypotenuse has length x+8, what is the value of x?
3
5
7
9