x + y = 6
y = 6 - x
substitute the x values to find the value of y
x ║ -2 ║ -1 ║ 0 ║ 1 ║ 2 ║ 3
========================
y ║ 8 ║ 7 ║ 6 ║ 5 ║ 4 ║ 3
Graph: