y + 2x = 5; x = -1

How do I solve for y? What I did was move y to the other side and divide all the values by 2. So, I first got x = 2.5 - y/2.

Substitute - 1 for x

y + 2x = 5

y + -2 = 5

Add 2 to both sides.

y = 7