contestada

You randomly choose one hat from 3 green hats, 4 black hats, 2 white hats, 2 red hats, and 1 blue hat. How many total hats are there?