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.
8.6m questions
11.2m answers