what is the value of x in -5-y-1=0 if y=x+1?

-5-(x+1)-1 = 0,

-(x+1)-6 = 0,
-x-1-6 = 0,
-x-7 = 0,
X = -7.