Clive opens a box full of different colored balls.   The box contains 6 blue balls, 4 red balls, 3 times as many green balls as blue ones and twice as many yellow ones as red ones.   How many balls are in the box Clive opens?
There are 3 times as many green balls as blue balls so green balls = blue balls * 3. Green balls = 6 blue balls * 3 = 
<gadget id="calculator">6*3</gadget>
<output>18</output>
18 green balls.
There are 2 times as many yellow balls as red ones so yellow balls = red balls * 2. Yellow balls = 4 red balls * 2 = 
<gadget id="calculator">4*2</gadget>
<output>8</output>
8 yellow balls.
The total number of all the balls is 6 blue + 4 red + 18 green + 8 yellow: 6+4+18+8 = 
<gadget id="calculator">6+4+18+8</gadget>
<output>36</output>
36 balls.

<result>36</result>