\(A=12x\left(x-4\right)-\left(x+1\right)\left(x^2-x+1\right)+\left(x-4\right)^3\)
\(=12x^2-48x-x^3-1+x^3-12x^2+48x-64\)
\(=-65\)
\(B=\left(x-3\right)\left(x+1\right)-\left(x+5\right)^2\)
\(=x^2-2x-3-x^2-10x-25\)
\(=-12x-28\)
=>-12x-28=-65
=>12x+28=65
=>12x=37
hay x=37/12