f(x)=(18-x)(7+(x-7)(1+(x-13)g(x)))