there is 2 black and 3 red hats.

hmm i think the answer is red hat

coz the two hats which he throws is black ....so he can see the both black hats and assumes that 3 red hats must be on that 3 people.