Linear Regression

Which of the following offsets, do we use in linear regression’s least square line fit? Suppose horizontal axis is independent variable and vertical axis is dependent variable? Please explain this question and what should be the answer.