You will get full credit for both. I will update the assignment to
reflect that.
The idea was that if you take the average the value would be 17.89 GPa
while if you plotted the curve the value of the slope would be 18 GPa.
Both are right and you shall get credit for them