Determine whether the mdh genotypes in this population

Three alleles are found at a locus coding for malate dehydrogenase (MDH) in the spotted chorus frog. Chorus frogs were collected from a breeding pond, and each frog’s genotype at the MDH locus was determined with electrophoresis. The following numbers were found: M1/M1 8 M1/M2 35 M2/M2 20 M1/M3 53 M2/M3 76 M3/M3 62 Total 254 a) Calculate the frequencies of the M1, M2, and M3 alleles in this population. b) Using a chi-square test, determine whether the MDH genotypes in this population are in Hardy-Weinberg proportions.