Find x for me please

Given:
In a right angle triangle,
Hypotenuse = x
Other two sides are (x-2) and 8.
To find:
The value of x.
Solution:
According to the Pythagoras theorem,
[tex]Hypotenuse^2=Base^2+Perpendicular^2[/tex]
Putting the given values, we get
[tex]x^2=(x-2)^2+(8)^2[/tex]
[tex]x^2=x^2-4x+4+64[/tex]
[tex]x^2-x^2+4x=68[/tex]
[tex]4x=68[/tex]
Divide both sides by 4.
[tex]x=\dfrac{68}{4}[/tex]
[tex]x=17[/tex]
Therefore, the value of x is 17.