how to work y= -x-4

I assume you want x when y=0?

0 = -x - 4

add x to both sides:

x = x - x - 4
x = -4