Hello,

It should be XY in the expectation, not xy. Since the random variables are named X and Y.

When you have the expectation containing 2 or more random variables, you must take the joint pdf of the variables (joint pdf of (X,Y) here).

For your question, consider the conditional distributions.