How to find hyptenuse of a triangle?