Common Solution:
A person walks 7m to the east from his house to reach point A.
He then turns right and walks 15m to reach point B.

Then he walks 5m to the west, turns left and walks 9m to reach point D.
He then turns right and walks 2m to reach point C.

He again turns right and walks 28m to reach point E. At last, he turns left and walks 3m to reach point F.

The shortest distance between the person's house and point F is given by the Pythagoras theorem.
The shortest distance between the person's house and point F = √32+42 = √9+16 = √25 = 5m.