\(B=x\left(x+2\right)+y\left(y-2\right)-2xy+100\)
\(=x^2+2x+y^2-2y-2xy+100\)
\(=\left(x^2-2xy+y^2\right)+\left(2x-2y\right)+100\)
\(=\left(x-y\right)^2+2\left(x-y\right)+1+99\)
\(=\left(x-y+1\right)^2+99\)
Vì \(x=y+6\Rightarrow x-y=6\Rightarrow x-y+1=7\)
Thay \(x-y+1=7\)vào \(B\), ta có :
\(B=7^2+99=49+99=148\)
\(KL:B=148\)tại \(x=y+6\)