The carousel at the fair has 3 blue horses, three times that many purple horses, twice as many green horses as purple horses, and 1/6th as many gold horses as green horses. How many horses are there total?
First find how many purple horses there are: 3 blue horses * 3 purple/1 blue = 
<gadget id="calculator">3*3</gadget>
<output>9</output>
9 purple horses.
Then double that number to find how many green horses there are: 9 purple horses * 2 green/1 purple = 
<gadget id="calculator">9*2</gadget>
<output>18</output>
18 green horses.
Then divide the number of green horses by 6 to find the number of gold horses: 18 green horses / 6 green/1 gold = 
<gadget id="calculator">18/6</gadget>
<output>3</output>
3 gold horses.
Then add the number of horses of each color to find the total number of horses: 9 horses + 18 horses + 3 horses + 3 horses = 
<gadget id="calculator">9+18+3+3</gadget>
<output>33</output>
33 horses.

<result>33</result>