Suppose a farmer with a rowboat is on one bank of a river with a fox, a goose, and a sack of corn. He wants to get the fox, goose, and the sack of corn to the other side of the river but can only carry one at a time in the rowboat.
How does he do it?