For the Four o'clock flower color:
- Sarah's parent plants must have been RW x RW.
- Matthew's parent plants must have been Pp x Pp.
- Sarah's parent plants must be Rrw x Rrw.
What are these genes?
The petal color of four o'clocks is determined by incomplete dominance. Plants with RR genes have red flowers, plants with WW genes have white flowers, and plants with RW genes have pink flowers.
Sarah's four o'clock flowers were all pink because both parent plants had RW genes.
Matthew's four o'clock flowers were 50% white and 50% pink because one parent plant had WW genes and the other parent plant had RW genes.
To get 25% red flowers, 25% white flowers, and 50% pink flowers, Sarah needs to cross two plants that are heterozygous for both red and white flower color, which means they have Rrw genes