The Hardy-Weinberg equilibrium shows allele frequency in a population.
p represents the percentage of alleles that are of the dominant trait. q represents the percentage of alleles that are of the recessive trait.
When given any of these percentages- except for the percent of organisms that are heterozygous- one may solve for all the other values. This can tell you the genotypic composition of a population.