\(Q=x^2+y^2=\left(x+y\right)^2-2xy=\left(-1\right)^2-2\left(-6\right)=13\\ P=x^3+y^3=\left(x+y\right)^3-3xy\left(x+y\right)\\ P=\left(-1\right)^3-3\left(-6\right)\left(-1\right)=-1-18=-19\)
\(P=\left(x+y\right)^2-2xy=\left(-1\right)^2-2\cdot\left(-6\right)=1+12=13\)
\(Q=x^2+y^2=x^2+2xy+y^2-2xy=\left(x+y\right)^2-2xy=\left(-1\right)^2-2.\left(-6\right)=1+12=13\)