Your question cannot be answered as posed. There is no such thing as the equation of a line. That is because there are an infinite number of representations of any given line. However, if you use the two-point form of an equation of a line, you can find an equation of the desired line.
where and are the coordinates of the given points.