Write an equation in slope intercept form for the line describe

Through (-5,6), perpendicular to x= -2

I got x= -5 which i got wrong

x = -2 is a vertical line.

So, what is the horizontal line through the point?

x = -5 is parallel to x = -2, not perpendicular.