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.
3.2m questions
4.0m answers