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
#### 36