To write the equation of the line. first calculate the slope using the slope formula.
Since the slope of this line is 0, it is horizontal and has the form y=b where b is the y-coordinate. So y = 2 is the equation. In general form, it would be y-2 = 0