It’s not all THAT difficult. Start by assuming, for the heck of it, that all colors are equiprobable, and posit that, to avoid angry consumers, they make sure at least N of each color get into every packet. You can ignore the variation in package count by “binning” each packet count value separately.
Friday’s a holiday, so have the answer ready to turn in at the start of Monday’s class.