1) \(P=-2x^2-12x=-2\left(x^2+6x+9\right)+18=-2\left(x+3\right)^2+18\le18\)
\(maxP=18\Leftrightarrow x=-3\)
2) \(Q=-5x^2+10x=-5\left(x^2-2x+1\right)+5=-5\left(x-1\right)^2+5\le5\)
\(maxQ=5\Leftrightarrow x=1\)
3) \(A=-3x^2+12x-6=-3\left(x^2-4x+4\right)+6=-3\left(x-2\right)^2+6\le6\)
\(maxA=6\Leftrightarrow x=2\)
4) \(B=-2x^2-24x+12=-2\left(x^2+12x+36\right)+84=-2\left(x+6\right)^2+84\le84\)
\(maxB=84\Leftrightarrow x=-6\)