solve for x
You will need to form your question more clearly. Could one do what?
The Pythagorean theorem will work here. Your hypotenuse has length $\displaystyle x+8,$ and the two legs are of length $\displaystyle x+6$ and $\displaystyle 20.$ Set up the equation, expand, and solve for $\displaystyle x.$