Since y both equals #-2x-1# and #x+5#, we can say that #-2x-1=x+5#. We add -2x on both sides to get #-1=3x+5#. We subtract 5 on both sides to get #-6=3x#. We then divide 3 on both sides to get #x=-2#. We can then go and plug in #x# for the original equations, so #y=-2(-2)-1# and #y=-2+5#. After solving for both equations, you get #y=3#.