The student wants to spend a mean of X[bar]=$40 a month for 5 months.
She already spent $35, $65, $20, $70 in 4 months, and you need to calculate how much she has to spend in the 5th month to reach her goal.
The mean can be calculated as
Where
Σxi is the sum of all observations, in this example, her monthly spending
n is the sample size, in this example the number of months
The information we have is then:
If X[bar] =$40, you can calculate the expenses for the fifth month as follows:
Multiply both sides by 5
She can spend $10 in December.