Survival of the fittest shows that plants/animals with traits better suited for survival in their environments usually pass those traits to their offspring to help them survive.
So basically you will have to label the purple parent 1 and whatever gene that is then the same for parent 2 here is an example of a punnet square so maybe you can understand better