the formula to get the expected value is
![E(x)=\sum ^n_(i\mathop=1)x_if(x_i)](https://img.qammunity.org/2023/formulas/mathematics/high-school/agx0w6aov5osnvvriij938dszq8y5quysd.png)
So, first we calculate teh probabilities. We have 20 bills in total. so we divide the quantity of bills of each value by the total:
we have 8 ones: 8/20= 2/5
5 fives: 5/20=1/4
4 tens: 4/20= 1/5
3 twenties = 3/20
now, we multiply each value with te probabilitiy of picking it and add all
![E=\text{ 1}\cdot(2)/(5)+5\cdot(1)/(4)+10\cdot(1)/(5)+3\cdot(3)/(20)=\text{ 4.1}](https://img.qammunity.org/2023/formulas/mathematics/high-school/tvjhtb3fpr417uu0zf796m0p78ppqwk2dd.png)
the expected value is 4.1