Jamie collects glass balls. He had 16 red balls and two times more blue balls. Later on, he lost 6 of the red balls, so he decided to buy some yellow balls to fill up his collection. How many yellow balls did he buy if, after all, he had 74 balls in total? Let's think step by step and output the final answer after "####".
user
Jamie had two times more blue balls than red ones, so he had 2 blue/red * 16 red balls = <<2*16=32>>32 blue balls.
He lost 6 red balls so he had only 16 red balls - 6 red balls = <<16-6=10>>10 red balls
In total he had 32 blue balls + 10 red balls = <<32+10=42>>42 red and blue balls.
He bought 74 balls - 42 red and blue balls = <<74-42=32>>32 yellow balls.
#### 32
Jamie collects glass balls. He had 16 red balls and two times more blue balls. Later on, he lost 6 of the red balls, so he decided to buy some yellow balls to fill up his collection. How many yellow balls did he buy if, after all, he had 74 balls in total?
train