A farmer needs to cross a river with a fox, a chicken, and a bag of grain. The boat can only carry the farmer and one item at a time. If left alone, the fox will eat the chicken, and the chicken will eat the grain. Describe the exact steps to get everyone across safely. Show your reasoning.
Classic solution (farmer can only take one item at a time)
Farmer takes Chicken to the right bank.
Farmer returns alone to the left bank.
Farmer takes Fox to the right bank.
Farmer brings Chicken back to the left bank.
Farmer takes Grain to the right bank.
Farmer returns alone to the left bank.
Farmer takes Chicken to the right bank.
Summary of reasoning: