2x+y=18 ..............( equation 1)
x-y=6 ...................( equation 2)
Now we have to solve these equations , that is we have to solve for the values of x and y
For this we have many methods ,
Let's use elimination method
2x+y=18
x-y=6
Here the coefficient of y is already same and has opposite sign , so we can directly add the two equations to eliminate y, So
2x+x + y - y = 18+6
3x = 24
Divide both sides by 3
x= 8
We have found the value of x
Now to find the value of y , we can easily plug the value of x in anyone of the equation and solve for y
So let's plug in second equation
8 - y = 6
Subtract 8 from both sides
8 - 8 - y = 6 - 8
- y = - 2
Divide both sides by -1
y=2
, So we get
x=8 and y=2
So the solution is
{x,y} = {8,2}