Chemistry Examples

Balance f(x)=3x+1 , domainB [-2,-1,0,1]
I am unable to solve this problem.