How to make the best-fit straight line for bivariate data

How to make the best-fit straight line for bivariate data

Here the way of placing the best-fit straight line through data points is clearly explained.