Write a linear function
f(0)=2, f(3)=-1
f(0)=2, f(3)=-1