solve the equation using substitution

y = 3x + 7
y= -4x

Since both expressions are equal to y, we can set them equal to each other and solve for x:

3x + 7 = -4x

Adding 4x to both sides:
7x + 7 = 0

Subtracting 7 from both sides:
7x = -7

Dividing by 7:
x = -1

Now that we have x, we can substitute it back into either equation to solve for y. Let's substitute it into the second equation:

y = -4(-1)
y = 4

Therefore, the solution to the system of equations is x = -1 and y = 4.