input/x,-2,0,2 rule/-x+3 output/y

just plug in the input as x into the equation... for -2: -(-2)+3 = 5, 0:-(0)+3 = 3, 2:-(2)+3 = 1