In the question, it is given that, Zayne has a bag filled with coins. the bag contains 7 quarters, 8 dimes, 3 nickels, and 9 pennies.. he randomly chooses a coin from the bag.
Probability of selecting quarter is

And probability of selecting nickel is

So to find the probability of selecting quarter or a nickel is the sum of the two probabilities, that is
