In this cross, we have a homozygous red-flowered plant and a yellow-flowered one. This means the red-flowered plant has a RR genotype and can only produce gametes with an R genotype, and that the yellow-flowered plant has an rr genotype and produces gametes with an r genotype.
As one plant produces only R gametes and the other produces only r gametes, their offspring would have an Rr genotype, and given that the red is the dominant allele, they would all have red flowers.