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:
[tex]\operatorname{mean}=\frac{20+70+30+85+x}{5}[/tex]We need to have a mean equal to $50. Set mean = 50.
[tex]50=\frac{20+70+30+85+x}{5}[/tex]Solve for x:
[tex]\begin{gathered} 50=\frac{20+70+30+85+x}{5} \\ 50=\frac{205+x}{5} \\ 5\cdot50=205+x \\ 250=205+x \\ \text{Therefore:} \\ x=250-205 \\ x=45 \end{gathered}[/tex]Hence, If the student wants to complete his goal, he will need to spend $45 in December.