The number of black shirts is 3 × 5 = <<3*5=15>>15.
The number of yellow shirts is 3 × 2 = <<3*2=6>>6.
Mandy bought 15 + 6 = <<15+6=21>>21 shirts.
#### 21