Question: An urn contains n+m balls of which n are red and m are black. They are withdrawn from the urn one at a time and without replacement. Let $X$ be the number of red balls removed before the first black ball is chosen. We are interested in determining the $E[X]$. To obtain this quantity, number the red balls from 1 to n. Define the random variables $X_i$ $(i=1,2...,n)$ by
$$X_i = \begin{cases} 1 \quad & : \text{if red ball labeled (i) is taken before any black ball is chosen}\\ 0 \quad & : \text{otherwise} \end{cases}$$
Express $X$ in terms of $X_i$s and find $E[X]$.
My Attempt:
Now we can express $X$ as $X = X_1+X_2+...+X_n$
To find the $X_i's$, what I think is it not geometric, but it is more like this $$ \begin{array}{c|c|c|c} X & 1 & 2 & \ldots \\ \hline P(X) & \frac{m}{n+m} & (\frac{n}{n+m})(\frac{m}{(n+m)-1}) & \ldots \end{array} $$ Now to determine the random variables, I tried to think about this step-by step. For $X_1$, it means that is the red ball labeled 1 is picked before any black ball is chosen, and so on for $ X_2, X_3,..,X_N$. What I think is to determine the random variables, it is like a permutation going on since the balls are numbered, but it's not. There is only 1 ball in the urn which is red and is labeled #1. There is only 1 ball which is red and is labeled #2, etc.
The question is that am I thinking about this the right way? Again, I really apologize about the organization. It is my first time on this site and I am trying to get familiar with the programming. Thank you for all of your help!