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?
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
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
You are solving math problems. Here are some examples of how to solve the task:

Janet, a third grade teacher, is picking up the sack lunch order from a local deli for the field trip she is taking her class on. There are 35 children in her class, 5 volunteer chaperones, and herself. She she also ordered three additional sack lunches, just in case there was a problem. Each sack lunch costs $7. How much do all the lunches cost in total?Janet needs 35 lunches for the kids + 5 for the chaperones + 1 for herself + 3 extras = <<35+5+1+3=44>>44 lunches.
Each lunch is $7, so lunch for the field trip costs $7 per lunch * 44 lunches = $<<7*44=308>>308 total
#### 308[END]

Scout delivers groceries on the weekends.  His base pay is $10.00 an hour.  He also earns a $5.00 tip per customer that he delivers groceries to.  On Saturday he worked 4 hours and delivered groceries to 5 people.  Sunday he worked 5 hours and delivered groceries to 8 people.  How much did he make over the weekend?He worked 4 hours on Saturday and 5 hours on Sunday for a total of 4+5 = <<4+5=9>>9 hours
His base pay is $10.00 an hour and he worked 9 hours for a total of 10*9 = $<<10*9=90.00>>90.00
He delivered groceries to 5 people on Saturday and 8 people on Sunday for a total of 5+8 = <<5+8=13>>13 deliveries
He makes $5.00 per delivery and he delivered to 13 people so he made 5*13 = $<<5*13=65.00>>65.00
His base pay is $90.00 and he made $65.00 in tips for a total of 90+65 = $<<90+65=155.00>>155.00
#### 155[END]

Now, solve this next question in the style of the above examples:

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?

### Response:
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