Answer:
Explanation:
We know that the bag has dark chocolates and milk chocolates, and the probability of randomly choosing a dark chocolate is g. And, we know that there are 18 dark chocolates in the bag and each is equally likely to be chosen.
Now, let's use this information to find the number of milk chocolates. If there are n total chocolates in the bag, then the probability of choosing a dark chocolate is g, and the probability of choosing a milk chocolate is 1-g. We can write these probabilities as:
g = 18/n
1-g = (n-18)/n
So, if we equate the two expressions, we get:
18/n = (n-18)/n
That means:
18 = n - 18
And finally:
n = 36
So, there must be 36 chocolates in the bag, and 18 of them are dark chocolates, which means there must be 18 milk chocolates!