There are 9-4 = <<9-4=5>>5 blue pens left in the jar.
There are 21-7 = <<21-7=14>>14 black pens left in the jar.
There are 5+14+6 = <<5+14+6=25>>25 pens left in the jar.
#### 25