Hats in a box problem

More data is needed for us to provide help.