Input (grade 11): The secretion of capsaicin protects the fruit from consumption by mammals while the bright colors attract birds that will disperse the seeds.
Output (grade 6): The plants developed the secretion of capsaicin to protect the fruit from being eaten by mammals. At the same time, the bright colors attract birds.