This question was asked in Ex 10.3, 17
U r applying pythogorus theorem incorrectly

Rahul Gujral's image