There are 15 cats in a shelter. One-third were adopted, and were replaced with twice the amount that were adopted. Later on, twice as many dogs showed up as there are cats. How many total animals are there in the shelter? Let's think step by step and output the final answer after "####".
user
15/3=<<15/3=5>>5 cats were adopted out of 15
There were 15-5 = <<15-5=10>>10 cats left
5*2=<<5*2=10>>10 more cats were added.
This makes 10+10=<<10+10=20>>20 cats in the shelter.
20*2=<<20*2=40>>40 dogs came into the shelter.
There are now 20+40=<<20+40=60>>60 animals in the shelter.
#### 60
There are 15 cats in a shelter. One-third were adopted, and were replaced with twice the amount that were adopted. Later on, twice as many dogs showed up as there are cats. How many total animals are there in the shelter?
train