We are given with the coordinates of one of the points of a line which is
(1,2)
In order to generate an equation of a line, we need at least one other point or the slope of the line. If we are given with the slope of line, we can use the point slope form which is
y - y1 = m (x - x1)
substituting
y - 2 = m(x - 1)