若(x+y)^2=10,(x-y)^2=6,求x^2+y^2及xy的值