The problem describes Ali walking 5 km east and then 4 km north. To find how far he is from the starting point, we can treat this as a right triangle, where the legs are the distances walked east and north. Using the Pythagorean theorem:
Distance=(5 km)2+(4 km)2=25+16=41≈6.4 km\text{Distance}=\sqrt{(5\text{ km})^2+(4\text{ km})^2}=\sqrt{25+16}=\sqrt{41}\approx 6.4\text{ km}Distance=(5 km)2+(4 km)2=25+16=41≈6.4 km
So, Ali is approximately 6.4 km from the starting point.