find values of a,b,c and d such that g(x)=ax^3+bx^2+cx+d has a local maximum at (2,4) and a local minimum at (0,0)