input:0;1;2;3 outpu2:4;2;0;-2 wht is the formula#stressed:|

4 in, 5 out. I'll ignore the 1st output (2), and note that y decreases by 2 when x increases by 1. So,

y = -2x + ?
Since y(0) = 4,

y = -2x+4