<human>:  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?
<bot>: How many blue pens are there? ** 8 x 2 = <<8*2=16>>16 are blue pens.
How many black pens are there? ** 16 + 10 = <<16+10=26>>26 are black pens.
How many red pens are there? ** 8 - 2 = <<8-2=6>>6 are red pens.
How many pens in all are there in Sam's collection? ** Therefore, there are 16 + 26 + 6 = <<16+26+6=48>>48 pens in all in Sam's collection.
#### 48