How to calculate the three appropriate averages used to draw the line of best fit