I don't understand these kinds of questions at all

Try Pythagorus's theorum
The theorem that the sum of the squares of the lengths of the sides of a right triangle is equal to the square of the length of the hypotenuse.
your answer is 12.81
c=a2+b2=82+102≈12.80625