use substitution method to solve system

{-x+y=5}
{4x-3y=-18}

To solve this system of equations using the substitution method, we will first solve one equation for one variable and then substitute this expression into the other equation.

From the first equation, we can solve for x in terms of y:
-x + y = 5
x = y - 5

Now, we substitute this expression into the second equation:
4x - 3y = -18
4(y - 5) - 3y = -18
4y - 20 - 3y = -18
y - 20 = -18
y = -18 + 20
y = 2

Now that we have found the value of y, we can substitute it back into the first equation to find the value of x:
x = y - 5
x = 2 - 5
x = -3

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