Solve the system of equations by substitution

x = -4y
x+5y=2

We can solve the system of equations by substitution as follows:

First, we solve the first equation for x in terms of y:
x = -4y

Substitute this expression for x in the second equation:
(-4y) + 5y = 2

Combine like terms:
y = 2

Now substitute this value of y back into the first equation to find x:
x = -4(2)
x = -8

So the solution to the system of equations is x = -8 and y = 2.