A bag of chocolate candies has the following colors: 5 yellow, 7 green, 8 red, 5 orange, and 4 brown. What is the probability of getting two of the same color when pouring two out of the bag?

a. Describe a simulation that could be used to answer the preceding question.

1 answer

could be
1. YY --->(5/29)(4/28) = 20/812
2. GG ---> (7/29)(6/28) = 42/812
...
5. BB ---> 4/29)(3/28) = 12/812)

Add them up
(20 + 42 + .. + 12)812
= ....