Path with coordinates:
Start at \(O(0,0)\). Take \(+x\) east, \(+y\) north.
- Walk 25 km west \(\Rightarrow (-25,0)\).
- Left (to south) 15 km \(\Rightarrow (-25,-15)\).
- Left (to east) 30 km \(\Rightarrow (5,-15)\).
- Now take left (to north) and walk 20 km \(\Rightarrow (5,5)\).
Distance from start:
\[
d=\sqrt{(5-0)^2+(5-0)^2}=\sqrt{25+25}=\sqrt{50}=5\sqrt{2}\ \text{km}.
\]
\[
\boxed{5\sqrt{2}\ \text{km}}
\]