I WILL MARK AS BRAINLIEST! Write an Equation that represents the points in the table

Answer:
y= -x+2
Step-by-step explanation:
Using the equation, y = mx+b, you know you have to find the slope. Find the slope using two coordinate points, (-2,4) and (0,2).
Subtract 2-4/0+2 - the answer is -1. Your slope is -1 and the y axis is given so the equation is y=-x+2