There is a bag with 50 popsicles inside
Total number of Popsicles = 50
Number of possible outcomes = 50
5 are red, 15 are orange, 12 are blue, 8 are yellow and 10 are purple
Number of red popsicles = 5
Number of Orange popsicles = 15
Number of Blue popsicles = 12
Number of Yellow popsicles = 8
Number of Purple popsicles = 10
The probability that it is purple:
Number of Purple popsicles = 10
Number of favourable Outcomes = 10

Probability of purple popsicles is 0.2
The probability that it is yellow :
Number of yellow popsicles = 8
Number of favourable Outcomes = 8

Probability of yellow popsicles is 0.16
The probability that it is purple or yellow is the sum of Probability of yellow popsicles and probability of purple popsicle
The probability that it is purple or yellow = 0.2 + 0.16
The probability that it is purple or yellow = 0.36

The probability that it is purple or yellow = 9/25
Answer : The probability that it is purple or yellow is 9/25