It is said to be an elementary school math Olympiad question. Note that for every meter walked, you have to eat one, no free walk😁