A bag contains a total of 30 balls, of which 12 are yellow, 10 are blue, and 8 are red. If a ball is selected at random from the bag, what is the probability that it is either yellow or red?
To find this probability, you can use the formula:
$$ P(A) = \frac{\text{Number of favorable outcomes}}{\text{Total number of outcomes}} $$