In a population of 500 moths living in a forest with dark-coloured tree trunks, moth colour is controlled by a single gene with two alleles. The dark allele (
D) is dominant over the light allele (
d). Of the 500 moths, 180 are light-coloured. Assuming Hardy–Weinberg equilibrium, what is the frequency of the allele
d?