Answer:
Red is recessive, yellow is dominant.
Step-by-step explanation:
Think about it in terms of genotype, with Y representing yellow and y representing red. Recessive means that both alleles must be expressed to get the phenotype, whereas dominant alleles only require one, because they cover up the recessive allele.
If you have two red flowers, their genotypes are yy and yy, from which you can only get yy offspring.
If you have two yellow flowers, their genotypes could be YY or Yy, from which you can get all yellow flowers, or red flowers if the parents are Yy and Yy.