A herdsman in North Africa must cross a river with a jackal (a predator), a goat (potential prey), and fig leaves (a potential snack for the goat). The herdsman has a boat that can hold him and two other items at one time. Neither the jackal and the goat nor the goat and the fig leaves can be left alone together on either shore. How can the man get the jackal, the goat, and the fig leaves safely across the river?