In order to calculate the line of best fit, let's start calculating the mean value of x and y.
The mean is given by the sum of all values divided by the number of values.
So we have:
Now, let's calculate the slope of the line using the formula below:
And finally, calculating the y-intercept, we have:
Therefore the equation is: