I got the following question but since I haven't reached a definite answer I'm wonder if I've solved it correctly: Write the slope-intercept form of an equation of the line that passes through (-2,5) and has an undefined slope.

I got:
5=-2m+b
5--2m=b
5+2m=b
is the slope intercept 5+2m?

an undefined slope means a vertical line, of the form

x=h

Since the line passes through (-2,5), the equation is

x = -2

This is a trick question, since there is no y-intercept.