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=
<gadget id="calculator">15/3</gadget>
<output>5</output>
5 cats were adopted out of 15.
There were 15-5 = 
<gadget id="calculator">15-5</gadget>
<output>10</output>
10 cats left
5*2=
<gadget id="calculator">5*2</gadget>
<output>10</output>
10 more cats were added.
This makes 10+10=
<gadget id="calculator">10+10</gadget>
<output>20</output>
20 cats in the shelter.
20*2=
<gadget id="calculator">20*2</gadget>
<output>40</output>
40 dogs came into the shelter.
There are now 20+40=
<gadget id="calculator">20+40</gadget>
<output>60</output>
60 animals in the shelter.

<result>60</result>