maximize -x^2+31x - 9x -25