a) \(A=x^2+6x+10\)
\(=\left(x+3\right)^2+1=\left(-103+3\right)^2+1=100^2+1=10001\)
b) \(B=x^3+6x^2+12x+12\)
\(=\left(x+2\right)^3+4=\left(8+2\right)^3+4=1004\)
\(A=x^2+6x+10=\left(x^2+2.x.3+3^2\right)+1\\ =\left(x+3\right)^2+1=\left(-103+3\right)^2+1=10000+1=10001\\ b,B=x^3+6x^2+12x+12\\ =x^3+3x^2.2+3.x.2^2+2^3+4=\left(x+2\right)^3+4\\ =\left(8+2\right)^3+4=1000+4=1004\)