These two equations have the same solution because we can see that they are equivalent.
One way to find out is this:-
Since x has a +1 next to it, and the other equation has a (-2) next to the x, we can multiply everything on the first equation by 2 to see if they are equivalent.