solve by substitution

3x-y = -7
x+y = -9

Substitute 3x+7 for y in the second equation, and solve the resulting equation for x.