Take the baby across. Then take the dog across. Bring the baby back. Leave the baby. Then take the poison across, and bring the dog back. Then bring the baby across and take the poison back. Drown the dog, strangle the baby, drink the poison. No more problem.