First find the total number of spools of yarn James has: 12 spools + 15 spools + 6 spools = <<12+15+6=33>>33 spools
Then divide that number by the number spools each beret needs: 33 spools / 3 spools/beret = <<33/3=11>>11 berets
#### 11