a: \(=x^2+2x+y^2-2y-2xy+37\)
\(=\left(x-y\right)^2+2\left(x-y\right)+37\)
\(=7^2+2\cdot7+37=49+14+37=100\)
b: \(=x^3+x^2-y^3+y^2+xy-3xy\cdot\left(7+1\right)-95\)
\(=\left(x^3-y^3\right)+\left(x^2+y^2\right)+xy-24xy-95\)
\(=\left(x-y\right)^3+3xy\left(x-y\right)+\left(x-y\right)^2+2xy-23xy-95\)
\(=7^3+3xy\cdot7+49-21xy-95\)
\(=343+49-95=297\)