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.
9.5m questions
12.2m answers