We can calcualte the number of blue hats by multiplying the total number of hats (n=48) by the proportion of blue hats (p=25%=0.25).
Then:
There are 12 blue hats.
1.6m questions
2.0m answers