We know that Slope of a Line Passing through two points (x₁ , y₁) and (x₂ , y₂) is given by :

Given Points are (-1 , 2) and (5 , 2)
here x₁ = -1 and x₂ = 5 and y₁ = 2 and y₂ = 2
⇒

We know that the form of line passing through point (x₀ , y₀) and having slope m is :
y - y₀ = m(x - x₀)
Here the line passes through the point (-1 , 2)
x₀ = -1 and y₀ = 2 and we found m = 0
Equation in Point slope form : y - 2 = 0