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