Sorry to tell but the question you asked is wrong because the hypotenuse should be the longest side.
It can be that he walks 3 km north and 4 km east. Find distance from his house.
Then it would be like:

In triangle ABC, <A=90 degrees.
BC
2=AB
2+AC
2
BC
2=3
2+4
2
BC
2=9+16
BC
2=25
BC=5
He is 5 km away from his house.