 Suppose that in total there are B black hats and W white hats.
<meaning-changed>  Suppose that in total there are B black hats and W white hats.
 Suppose that in total there are B blue hats and R red hats.