Why is the E[ Y - f(x) ]^2 minimized when choosing f(x) = E[Y|X] ?
Try finding when the expression is zero. Also since you are using two variables, what is the expectation with respect to?
Another thing to note is that E_y[E_x[Y|X]] = E[Y] (also known as conditional expectation).
Separate names with a comma.