Solve equation [2] for the variable y
[2] y = x + 6
// Plug this in for variable y in equation [1]
[1] (x +6) - 5x = 2
[1] - 4x = -4
// Solve equation [1] for the variable x
[1] 4x = 4
[1] x = 1
// By now we know this much :
y = x+6
x = 1
// Use the x value to solve for y
y = (1)+6 = 7
Solution
{y,x} ={7,1}