Since 1 is positive, then D would be your answer.
Step-by-step explanation:
There are a total of 4 + 1 + 9 + 6 = 20 cookies. So the probabilities of each type for a random cookie are:
P(oatmeal raisin) = 4/20 = 1/5
P(sugar) = 1/20
P(chocolate chip) = 9/20
P(peanut butter) = 6/20 = 3/10
Let X is the random number Erik thinks of, and Y is the random number Nita thinks of.
Both X and Y are in the range from 0 to 20.
<span>X<=20
Y<=20
If the difference between their two numbers is less than 10, then Erik wins.
The difference between the two numbers can be written X-Y, or Y-X depending on which number (X or Y) is greater. But we do not know that. In order not to get negative value, we calculate absolute value of X-Y, written |X-Y| which will give positive value whether X is greater than Y or not.
If |X-Y|<10 Erik wins.
</span><span>If the difference between their two numbers is greater than 10, then Nita wins.
</span><span>If |X-Y|>10 Nita Wins
</span>