The probability of an event can be defined as the the ratio,
of the favorable outcomes to the total outcomes.
Coming to the problem, when it is said probability that the ball is green is 0.5
Converted into a fraction, 0.5 is \(\frac{1}{2}\)
Since we are given there are 32 balls in total, denominator has to be 32.
\(\frac{1}{2}\) = \(\frac{16}{32}\)(which translates to a total of 16 green balls in the bag)
Similarly, the probability of ball being blue is 0.25, which is \(\frac{1}{4}\)
Using the same logic, there are a total of 8 blue balls in the bag.
In the question stem, it is clearly given that the balls can be one of 4 colors : Blue, Green, Red or Yellow.
Red + Yellow + Blue + Green = Total
Red + Yellow = Total - Blue - Green = 32 - 8 - 16 = 8
Probability of finding red or yellow ball in the bag is \(\frac{8}{32}\) = \(\frac{1}{4}\)(Option B)