(x+y)^2-(x-y)^2=40-20
x^2+2xy+y^2-(x^2-2xy+y^2)=20
x^2+2xy+y^2-x^2+2xy-y^2=20
2xy=20
xy=10
(x+y)^2=40
x^2+2xy+y^2=40
x^2+y^2=40-2xy=40-2×10=20
(x+y)^2-(x-y)^2=40-20
x^2+2xy+y^2-(x^2-2xy+y^2)=20
x^2+2xy+y^2-x^2+2xy-y^2=20
2xy=20
xy=10
(x+y)^2=40
x^2+2xy+y^2=40
x^2+y^2=40-2xy=40-2×10=20