represent and solve the puzzle of the farmer, dog, chicken, and grain crossing the river in a small boat