can someone please explain this. My instructor did this but I don't really understand how.

I have

E(Y*E(YlX))

from theorem of total expectation that can be written as

E(E(Y*E(YlX)lX)

but how does that turn into

E(E(YlX)*E(YlX))