If the slope(m) and a point (x1,y1) of a line are known, the equation of line is given by
x - x1 = m(y - y1)
y - y1 = m (x - x1)
y + y1 = m (x - x1)
y - y1 = m (x + x1)