But it did say predict so we would need to use the last value and sub into the equation
I know, I know ... but the 'prediction' IS the last smoothed value.
Look up the the section 'prediction using moving averages' within 4C
There is Method 1 and Method 2.
OP is correctly using Method 1 (as required by the problem) and you are using Method 2
(EDIT : Here is the relevant section, to save you the trouble of looking it up
Prediction using moving averages
Because the moving average does not generate a single linear equation, there are limited
possibilities for using the resultant smoothed data for prediction. However, there are two things
that can be done.
1. Predict the next value — use the last smoothed value to predict the next time point. In
the previous example, our prediction for t = 18 would be temperature = 37.50. This is not
necessarily an accurate prediction but it is the best we can do without a linear trend equation.
2. Fit a single straight line to the smoothed data — using either the 3-median or least-squares
techniques, one could find a single equation for the smoothed data points. This is often the
preferred technique.