To find the expected number of gumdrops from taking a bag, calculate the weighted average of the number of bags weighted by the amount of gumdrops that they contain:

Then, the expected value of x is:

Therefore, the expected number of red gumdrops that a randomly chosen bag will have, is:
