There are 3 times as many green balls as blue balls so green balls = blue balls * 3.

Green balls = 6 blue balls * 3 = <<6*3=18>>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 = <<4*2=8>>8 yellow balls

The total number of all the balls is 6 blue + 4 red + 18 green + 8 yellow: 6+4+18+8 = <<6+4+18+8=36>>36 balls

# Answer

36
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
36
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?
train