Finds the slope a and the intercept b of the line y = ax + b through the two points (x₁, y₁) and (x₂, y₂).