Finding the covariance of X,Y using variance?

559 Views Asked by At

For two random variables $X$, $Y$, how can I calculate the $\text{Cov}(X,Y)$ given that $\text{Var}(X+Y)=1$ and $\text{Var}(X-Y)=2$?

I tried this but I'm missing something:

$\text{Var}(X+Y)=\text{Var}(x)+\text{Var}(Y)+2\text{ Cov}(X,Y)=1$

$\text{Var}(X-Y)=\text{Var}(X+(-Y))=\text{Var}(X)+\text{Var}(Y)-2\text{ Cov}(X,Y)=2$

But I don't know how to proceed.. Any ideas?