The mean is given by the sum of all the months divided by the number of months.
Then:
Let's set x for the spending money for December.
There are 5 months.
Hence:
![\operatorname{mean}=(20+70+30+85+x)/(5)]()
We need to have a mean equal to $50. Set mean = 50.

Solve for x:

Hence, If the student wants to complete his goal, he will need to spend $45 in December.