This question was asked in Ex 5.3, 18
Pythagoras theorem

Karthick G's image