to write the equation of a line in slope/intercepts form given,
m = 0
and points (-2,5)
the equation of a line is,
y = mx + c
where m is slope,
c is the intercept
from the parameters given,
x = -2
y = 5
so the equation of the for the above question is
5 = (0)-2 + c
5 = 0 + c
5 = c
c = 5