Slope-intercept equation from two points