A fair six-sided die is rolled $Y$ times, where $Y\sim \operatorname{Po}(4)$.
Let $X_i, \,i=1,\ldots,Y$ be the number obtained on the $i$th roll, and let
$$Z=\sum_{i=1}^Y X_i$$ How do I calculate the expected value of $Z$?
As far as I know the expectation of $Y$ is $4$, I don't know how to start. Can anyone help me with this? Thank you!

Hint: this problem would be easier if $Y$ were a fixed number rather than a random variable. It turns out solving this easier problem can help you solve the original problem. Use the "tower rule"/"law of total expectation": $$E[Z] = E[E[Z \mid Y]].$$
Edit: If $Y$ is fixed at a certain value $y$, then $E[Z \mid Y=y] = \sum_{i=1}^y E[X_i] = 3.5y$. Thus $E[Z \mid Y] = 3.5Y$ and $E[Z] = E[E[Z \mid Y]] = E[3.5Y] = 3.5 E[Y]$.
In general (for sums of a random number of i.i.d. random variables), it does end up being the product of the expectations: this is Wald's equation.