You cannot write the equation of a line because for any line there are many different equation representations. However, if you want to write an equation of a line containing two points, then use the Two-Point Form of an equation of a straight line:
Where and are the given points.
John
My calculator said it, I believe it, that settles it