The equation of the line is y = 2.
When the slope of a line is 0, it indicates that the line is horizontal. This means that for any value of x, the y-coordinate remains constant. In this case, the y-intercept is given as 2, meaning the line crosses the y-axis at the point (0, 2).
Since the line doesn’t rise or fall as it moves along the x-axis (due to the slope being 0), it maintains the same y-value of 2 regardless of x. Thus, the equation of the line can be expressed simply as y = 2, which describes a horizontal line situated at the height of 2 on the Cartesian plane.