<human>:  A boat carrying 20 sheep, 10 cows and 14 dogs capsized. 3 of the sheep drowned. Twice as many cows drowned as did sheep. All of the dogs made it to shore. How many total animals made it to the shore?
<bot>: How many sheep made it to shore? ** The boat had 20 - 3 = <<20-3=17>>17 sheep make it to shore.
How many cows drowned? ** 3 sheep drowned, so 2 * 3 = <<2*3=6>>6 cows drowned.
How many cows made it to shore? ** 10 cows on the boat - 6 drowned = <<10-6=4>>4 cows made it to the shore.
How many total animals made it to the shore? ** 17 sheep + 4 cows + 14 dogs = <<17+4+14=35>>35 animals made it to shore.
#### 35