could anyone help me understand better this problem, please?
$Y$ is a random variable that is defined by another random variable $N$ and a sequence of random variables $X_1$, $X_2$,$\dots$, such that:
$$ Y = \sum_{i=1}^NX_i$$
Obs: $X_1,X_2,X_3,\dots$ is a sequence of independent and identically distributed random variables and $N$ is a non negative random variable, which values are in the set of positive integers and independent of the sequence $\{X_i: i ≥ 1\}$.
Question: What is the expected value of $Y$ in terms of $\mathbb E\left[X_1\right]$ (Expected value of $X_1$) and $\mathbb E[N]$ (Expected value of $N$)
My doubt: If $Y$ was defined by only one random variable, I would use the law of total probability, but here $Y$ is defined by two random variables! Could anyone give me a direction without solving the problem, please?
Obs2: I'm in first semester probability course, so I might not understand too advanced topics.