You can't do that. You cannot write the equation of a line. There are an infinite number of representations of any given line, hence the best you can do is write an equation of the desired line.
Use the two point form of an equation of a line:
where and are the coordinates of the given points.
John
My calculator said it, I believe it, that settles it