Write the equation of the line with x-intercept (–8, 0) and undefined slope. would this by y=-8x??????????

You're close!

The only line with an undefined slope is a vertical line.

Therefore the equation of a vertical line passing through (-8, 0) is:

x = -8

There is no y in the equation; y can be any value.