Roll a fair die to obtain a random number $1 ≤ n ≤ 6$, then flip a fair coin $n$ times. Let $X$ be the random variable that expresses the number of heads in the coin flips. Find the mean and variance of $X$.
Since the coin flips are Bernoulli trials, the expected number for heads ($H$) and tails ($T$) are $\mathbb{E}[H]=\mathbb{E}[T]=n/2$.
Furthermore, $H$ (and $T$) is distributed as per the binomial distribution, which has mean $n/2$ and variance $n/4$, ($n\in\{1,2,3,4,5,6\}$).
I don't know how to combine this with the outcome of the die roll. I have very elementary knowledge with probability and statistics, but I know, at least, that the coin tosses are independent of any other event.
(This is a problem I found in a Facebook group - not homework or anything).
Thank you!