[tex]y=-2x+2[/tex][tex]x=\mleft\lbrace2,1,0,-1,-2\mright\rbrace[/tex][tex]\begin{gathered} x=2,y=-2(2)+2=-4+2=-2 \\ x=1,y=-2(1)+2=-2+2=0 \\ x=0,y=-2(0)+2=2 \\ x=-1,y=-2(-1)+2=4 \\ x=-2,y=-2(-2)+2=6 \end{gathered}[/tex][tex]y=\mleft\lbrace-2,0,2,4,6\mright\rbrace[/tex]
The x values is the input values while y is the output values.