Use the Pythagorean theorem:
[tex]x^2+8^2=10^2\\\\x^2+64=100\ \ \ \ |-64\\\\x^2=36\to x=\sqrt{36}\\\\\boxed{x=6}[/tex]