Hi, sidzeman!
To really understand that question, let's consider the question again.
It tells us that there are three phenotypes, which means that there may be a case of codominance happening, where both dominant alleles are fully expressed. This means that for an orange flower to occur, there must be a RY happening.
Now, we know that the cross is of a different flower colour, which means it can't be something like RR and Rr, or Rr and Rr.
Lastly, we know that three phenotypes were expressed after the cross. This means it can't be anything with a dominant AND and a recessive allele, such as RR and rr, since that will only express two phenotypes.
Thus, we can rule out (B).
Now, we need to determine if they were pure bred or not.
Since it follows Mendel's experiments, the parents would have been purebred, which means that the genotypes are: RR and YY.