Pythagoras Theorem based question

Yes I did that and the sides are corresponding to that.