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.
#### 41