Let $X$ be the random variable receiving values in $ \mathbb{N} \cup \{0\}$.
Let $Y_i$ be independent, with equal distribution random variables that receive values in the same group.
Let $ Z = \sum_{i=1}^X Y_i$.
Prove that $\mathbb E[Z] = \mathbb E[X] \mathbb E[Y_1] $
I tried opening the right side, but I've no idea how $Z$ actually works since it always dependent of $X$.