1: \(A=\left(-x+5\right)\left(x-2\right)+\left(x-7\right)\left(x+7\right)\)
\(=-x^2+2x+5x-10+x^2-49=7x-59\)
\(B=\left(3x+1\right)^2-\left(3x-2\right)\left(3x+2\right)\)
\(=9x^2+6x+1-9x^2+4=6x+5\)
=>7x-59=6x+5
=>x=64
2: \(A=\left(5x-1\right)\left(x+1\right)-2\left(x-3\right)^2\)
\(=5x^2+5x-x-1-2x^2+12x-9\)
\(=3x^2+16x-10\)
\(B=\left(x+2\right)\left(3x-1\right)-\left(x+4\right)^2+x^2-x\)
\(=3x^2-x+6x-2-x^2-8x-16+x^2-x\)
\(=3x^2-4x-18\)
=>16x-10=-4x-18
=>20x=-8
hay x=-2/5