Let $X$ and $Y$ be two random variables with finite second moments and $E(X \mid Y) = Y$ , $E(Y \mid X)= X$. Show that $P(X = Y)= 1$.
I tried using conditional expectation, so $E(E(X \mid Y))=E(Y) \Rightarrow E(X)=E(Y)$, but then I'm totally stuck on how to continue. I don't even know how to relate it to probability or using the fact of finite second moment.
Any help is appreciated. Thank you.