[B, R] is the set of genes of the male fruit fly.
[b, r] is the set of genes of the female fruit fly.
(The genes labeled B and b have the same effect on the offspring. I only need a method to distinguish where the genes come from)
Then the offspring has the following sets of gene:
As you can see there are three different combinations.