We have $5$ white balls, $3$ black and $2$ red in urn. We draw one after another ball with returning till we thrown red ball. Let $X$ be a number of drawn white balls. Calculate $\mathbb{E}X$.
I've started from defining $X_i$ such that $X_i=1$ when $i$-th drawn ball is white and $X_i=0$ if not. And now I have $X=\sum_{i=1}^NX_i$ when $N$ is a moment when we drawn red ball. $P(N=k)=(\frac{8}{10})^{k-1}\frac{2}{10}$ And Im not sure if I do this in right way and if yes how to end it.