human
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?
assistant
How many blue balls did Jamie have? ** 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.
How many red balls did Jamie have after losing 6? ** He lost 6 red balls so he had only 16 red balls - 6 red balls = <<16-6=10>>10 red balls
How many balls did Jamie have in total? ** In total he had 32 blue balls + 10 red balls = <<32+10=42>>42 red and blue balls.
How many yellow balls did Jamie buy? ** He bought 74 balls - 42 red and blue balls = <<74-42=32>>32 yellow balls.
#### 32