This question was asked in Ex 6.5, 5
How to use Pythagoras theorem

Gavi Johal's image