The regression line (n=6) equation calculates the appropriate regression line for the input data. It is compatible with a sample of 6. If a different sample size is needed, you can always duplicate the equation and try programming the modifications, or you can leave a comment asking for a different sample size.
The equation returns your appropriate regression line in slope-intercept form, Ŷ = mx + b.
Gravetter, F. J., & Wallnau, L. B. (2013). Statistics for the Behavioral Sciences. Wadsworth, CA: Cengage Learning.