We have 4 bags with 47 candies each, 4 bags with 131 candies each and 2 bags with 173 candies each. In order to calculate the expected value of x, we can divide the total number of candies by the total number of bags:
![\begin{gathered} E(x)=(47\cdot4+131\cdot4+173\cdot2)/(10) \\ E(x)=105.8 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ovk2ra98w56idxscjdsfdphvfgz8izlz36.png)
So the expected value of x is 105.8.