For a random variable $X$, there is an expected value $E(x)$. Since $E(X) = \mu \in \mathcal{R}$ where $\mu$ is a mean, and can be viewed as a constant. If this is true, then $E(E(X)) = E(\mu) = \mu$ by linearity and property of expectation.
However, my confusion sets in when I try to apply this logic in trying to understand the law of total expectation that is $E(Y) = E(E(Y|X))$. If I know that X is given, then it is appropriate to characterize $E(Y|X)$ as a constant, according to previous logic, such that $E(E(Y|X)) = E(Y|X)$, but $E(Y) = E(E(Y|X)) \neq E(Y|X)$
Can anybody give me a hand here? Thanks.