what is the value of x

We use the Pythagorean theorem here, because we have the two sides and a right angle between them, so we calculate the hypotenuse like this:
x^2 = 6^2 + 8^2
x^2 = 36 + 64
x^2 = 100
x = square root of 100
x = 10
The correct answer is B.10.