substitution method

y=x+1
x+y=5

y=x+1

x+y=5

x + x + 1 = 5

2x = 4

x = 2

y = 2 + 1
y = 3

To solve the system of equations using the substitution method, we can follow these steps:

Step 1: Solve one equation for one variable. In this case, let's solve the first equation for y:
y = x + 1

Step 2: Substitute the expression for y in the second equation. Replace y with (x + 1) in the second equation:
x + (x + 1) = 5

Step 3: Simplify the equation:
2x + 1 = 5

Step 4: Solve for x:
2x = 5 - 1
2x = 4
x = 4/2
x = 2

Step 5: Substitute the value of x back into one of the original equations to solve for y. Let's use the first equation:
y = 2 + 1
y = 3

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