If the slope is 0, that means it is a horizontal line. The y values never change in a horizontal line.
A horizontal line is a y= line, where the y value given is the answer to the equation. In this case the y value given is 6, so the equation of the line is