M&M’s come in three phenotypes: peanut, peanut butter, and p…

M&M’s come in three phenotypes: peanut, peanut butter, and plain.  If you have a bowl of 40 M&M’s with 10 peanut, 16 peanut butter, and 14 plain M&M’s, what are the genotype frequencies for each?  Assume the peanut M&M is the homozygous dominant (PP) and the plain M&M is the homozygous recessive (pp).