Roy has 2 x 2 = <<2*2=4>>4 black pens.

Twice the number of black pens is 4 x 2 = <<4*2=8>>8.

So, there are 8 - 2 = <<8-2=6>>6 red pens.

Therefore, Roy has 2 + 6 + 4 = <<2+6+4=12>>12 pens in all.

# Answer

12
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Roy has 2 blue pens. He has twice as many black and 2 less than twice as many red than black pens. How many pens does Roy have in all?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
12
Roy has 2 blue pens. He has twice as many black and 2 less than twice as many red than black pens. How many pens does Roy have in all?
train