Final answer:
To solve this system of equations by substitution, solve one equation for x and substitute it into the other equation. The solution is x = 1 and y = 4.
Step-by-step explanation:
To solve this system of equations by substitution, we start by solving one equation for one variable and substituting it into the other equation. Let's solve the first equation for x: x = 5 - y.
Now substitute this value of x into the second equation: 2(5 - y) + y = 6.
Expand and simplify: 10 - 2y + y = 6. Combine like terms: -y + 10 = 6. Subtract 10 from both sides: -y = -4. Divide by -1: y = 4.
Now substitute this value of y back into the first equation to find x: x = 5 - 4 = 1.
Therefore, the solution to the system of equations is x = 1 and y = 4.