Arnold V. answered 09/27/19
Experienced Tutor in Math and Physics with PhD in Physics
Each of 6 t-shirts can be worn with blue hat. This gives 6 combinations. Also each of 6 t-shirts can be worn with red hat. This also gives 6 new combinations. Therefore, total number of combinations is 6+6 = 12.
These 12 combinations are bw, bg, bb, by, bp, bo, rw, rg, rb, ry, rp and ro. Here in each combination the first letter denotes the color of the hat, the second letter denotes the color of t-shirt.