For this to be a fair game, the price to play should match the expected value of the prize.
To calculate the expected value we just need to use the formula for the expected value, which is
Where x_i represents the values of our dataset, and P(x_i) the probability of this value to be choosen from the hat.
To find the probability of drawing each individual bill, we just need to calculate the ratio between the amount of this specific bill and the total amount of bills inside of the hat.
We have 4 $1 bills, 7 $5 bills, 3 $20 bills, and 2 $100 bills. The total amount of bills is given by the sum of all of those amounts.
Then, the probabilities for each value are
Then, applying our values into the expected value formula, we have
The fair price for this game would be $18.69.