solve 300=40x-1/2*2*x^2