He will first take the goat and then the cabbage and leave the cabbage and bring the goat back and take the wolf next time. Finally will take the goat back.