You can tell by looking at a graph that if it is a horizontal line, y = the y-value of the line. To provide context:
Take any two points on the line, let's say x = 1 and x = 2. We'll use this for slope. Let's also take the y-value of these points.

Let's take x = 0 (the y-intercept). It's shown on the graph to equal -4.
So:
m = 0, b = -4
y = mx + b
y = 0x - 4
y = -4