8 x 2 = <<8*2=16>>16 are blue pens.

16 + 10 = <<16+10=26>>26 are black pens.

8 - 2 = <<8-2=6>>6 are red pens.

Therefore, there are 16 + 26 + 6 = <<16+26+6=48>>48 pens in all in Sam's collection.

# Answer

48
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
In Sam's collection, there are ten more black pens than blue pens and twice as many blue pens as pencils. There are also eight pencils and two fewer red pens than pencils. How many pens in all are there in Sam's collection?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
48
In Sam's collection, there are ten more black pens than blue pens and twice as many blue pens as pencils. There are also eight pencils and two fewer red pens than pencils. How many pens in all are there in Sam's collection?
train