Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
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?

### Response:
8 x 2 = <<8*2=16>>16 are the number of blue pens.
16 + 10 = <<16+10=26>>26 are the number of black pens.
8 - 2 = <<8-2=6>>6 are the number of red pens.
Therefore, there are 16 + 26 + 6 = <<16+26+6=48>>48 pens in all in Sam's collection.
#### 48