Since a, b, c, d, and e are all variations of a similar question, I think it is fair just to do problems a and d and leave the rest.
Expected value is the average outcome of running a long-term experiment, which is calculated with the formula E(X)=∑ni=1xiP(xi) where E(X) is the expected value, xi is a specific outcome, and P(xi) is the probability of xi occurring. Let's apply this to problem a.
Upon drawing a slip of paper from the bag, 2 possible outcomes can occur: 3 or 8 with their respective probabilities. With the unmodified bag, 3 occurs with a probability of 8/10 because there are eight 3's and ten slips of paper. Likewise, 8 occurs with a probability of 2/10 because there are two 8's and ten slips of paper. Substitute this information into the formula and the answer follows naturally.
E(X)=3∗810+8∗210=2410+1610=4
Therefore, E(X) = 4 for problem a.
Next, let's consider problem d. Here, the expected value is given, so E(X) = 6. Adding 8's to the original contents of the bag increases both the number of 8's and the total number of 8's in the bag. Let a represent the number of 8's to add to the bag such that E(X) = 6. This would result in the following equation.
E(X)=n∑i=1xiP(xi)6=3∗810+a+8∗2+a10+a60+6a=24+16+8a20=2aa=10
Therefore, add ten 8's to the bag. To be a proper mathematics steward, note that 10 + a appears in the denominator. This means a ≠ -10 under any circumstance. However, this is a non-issue regardless because the variable a represents the number of 8's added, so a negative value for a is nonsensical anyway.