You are given a system of two linear equations with two variables:
- x + y = 5
- 3x + y = 7
To solve this system for x and y, we can use either the substitution method or the elimination method. Let's use the elimination method:
First, we'll align the equations:
x + y = 5 (1) 3x + y = 7 (2)
Now, we will subtract equation (1) from equation (2) to eliminate the y variable:
(3x + y) - (x + y) = (7) - (5)
This simplifies to:
3x - x + y - y = 7 - 5 2x = 2
Now divide both sides by 2:
x = 2 / 2 x = 1
Now that we have the value of x, we can substitute it back into either original equation to find the value of y. Let's use equation (1):
x + y = 5 1 + y = 5
Subtract 1 from both sides to get the value of y:
y = 5 - 1 y = 4
Therefore, the solution to the system of equations is:
x = 1 y = 4
