A pond holds a population of frogs in which the allele A has a frequency of 40 per cent. In each generation, a quarter of the breeding adults in the pond are frogs that have swum down from a river upstream. In the river, the allele A has a frequency of 60 per cent. The river population does not change, and mating is random. What is the frequency of A in the pond after one generation?