how do i solve 2x+7y=-20 and y=3x+7

2 x + 7(3x+7) = -20

The next steps would be:

23 x + 49 = -20
23x = -69
x = -3
y = 3x + 7 = -2

To solve the system of equations:

1. Start with the given equations:
2x + 7y = -20 (Equation 1)
y = 3x + 7 (Equation 2)

2. Since Equation 2 is already solved for y, substitute its value (3x + 7) into Equation 1:
2x + 7(3x + 7) = -20

3. Simplify the equation by distributing 7 to (3x + 7):
2x + 21x + 49 = -20

4. Combine like terms:
23x + 49 = -20

5. Move 49 to the other side by subtracting it from both sides of the equation:
23x = -20 - 49
23x = -69

6. Solve for x by dividing both sides of the equation by 23:
x = -69 / 23
x = -3

7. Substitute the value of x (which is -3) into Equation 2 to find the value of y:
y = 3(-3) + 7
y = -9 + 7
y = -2

8. Therefore, the solution to the system of equations is x = -3 and y = -2.