Write a linear equation from two points