Step 1 :The general equation of a line is \(y = mx + b\), where \(m\) is the slope and \(b\) is the y-intercept.
Step 2 :Given that the slope is 0, the equation becomes \(y = b\).
Step 3 :To find the value of \(b\), we can substitute the coordinates of the point (1,2) into the equation.
Step 4 :Substituting the values we get \(m = 0\) and \(b = 2\).
Step 5 :Final Answer: The equation of the line is \(\boxed{y = 2}\).