A farmer needs to cross a river with a wolf, a goat, and a cabbage. He has a small boat that can only carry him and one other item at a time. If he leaves the wolf alone with the goat, the wolf will eat the goat. If he leaves the goat alone with the cabbage, the goat will eat the cabbage.
How can the farmer get all three across the river safely?
Answer: