Input (grade 13): If the first allele is dominant to the second, than the fraction of the population that will show the dominant phenotype is p2 + 2pq, and the fraction with the recessive phenotype is q2.
Output (grade 8): The phenotype of the flower will always be red if a dominant B is in the genotype.