In a population that is in Hardy-Weinberg equilibrium, there are two possible alleles for a certain gene, A and a. If the frequency of allele A is 0.4, what fraction of the population is heterozygous?

A. 0.40

B. 0.60

C. 0.16

D. 0.48