To solve this problem we substitute color(red)(-2)−2 for color(red)(y)y in the equation and solve for xx:
2x + 6color(red)(y) = 42x+6y=4
Becomes:
2x + (6 xx color(red)(-2)) = 42x+(6×−2)=4
2x + (-12) = 42x+(−12)=4
2x - 12 = 42x−12=4
Next we can add color(red)(12)12 to each side of the equation to isolate the xx term while keeping the equation balanced:
2x - 12 + color(red)(12) = 4 + color(red)(12)2x−12+12=4+12
2x - 0 = 162x−0=16
2x = 162x=16
Now, we divide each side of the equation by color(red)(2)2 to solve for xx while keeping the equation balanced:
(2x)/color(red)(2) = 16/color(red)(2)2x2=162
(color(red)cancel(color(black)(2))x)/cancel(color(red)(2)) = 8
x = 8