Maria has 8 + 10 = <<8+10=18>>18 black pens.

Maria has 8 + 7 = <<8+7=15>>15 blue pens.

Maria has 8 + 18 + 15 = <<8+18+15=41>>41 pens in total.

# Answer

41
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
There are 8 red pens in Maria's desk drawer. There are 10 more black pens than red pens. There are also 7 more blue pens than red pens. How many pens are there in all?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
41
There are 8 red pens in Maria's desk drawer. There are 10 more black pens than red pens. There are also 7 more blue pens than red pens. How many pens are there in all?
train