a) \(A=x^2-2xy+y^2=\left(x-y\right)^2=\left(-3\right)^2=9\)
b) \(B=x^2+y^2=x^2-y^2+2xy-2xy=\left(x-y\right)^2+2xy=9+2.10=29\)
c) \(C=x^3-3x^2y+3xy^2-y^3=\left(x-y\right)^3=\left(-3\right)^3=-27\)
d) \(D=x^3-y^3=\left(x-y\right)^3+3xy\left(x-y\right)=-27+3.10.\left(-3\right)=-27-90=-117\)