The question says 'in corn, purple kernels are dominant to yellow. A random sample of 100 kernels is taken from a population in Hardy-Weinberg equilibrium. It is found that 9 kernels are yellow and 91 kernels are purple/
What is the frequency of the yellow allele in this population?'
The answer is 0.3, can someone explain how to do this and why what I am doing currently is wrong please? I did it by 91/100 is 0.91 which is purple kernels so p because its dominant and the p+q=1 to 1-0.91 to get 0.09. I'm also not sure whether this is giving for example p or p^2. So if someone could explain when to know the difference of what you are given too please?
Thank you