Answer:
y-2=0
Step-by-step explanation:
In y=mx+b
m=(y2-y1)/(x2-x1) [2]
Or another way of thinking about it is rise over run.
define point (-1,2) as x1,y1
define point (5,2) as x2,y2
substitute into formula [2]
m=(2-2)/(5-(-1))
We know that 2-2=0 therefore the slope (m) is 0
y=0x+b
Or simply
y=b
to solve for b we substitute into the formula any of the points
2=b for y1
or 2=b for y2
b=2
therefore y=2
to convert it into general form make the equation equal 0
y-2=0