x^3+y^3=(x+y)(x^2-xy+y^2)=10(x^2-xy+y^2)=100x^2-xy+y^2=10(x+y)^2-3xy=100-3xy=10xy=30x^2+y^2=10+xy=10+30=40