There is a problem like this,
Suppose you have a biased coin with a probability 0.1 of head. You win 100 dollars every time you get a head and lose 50 dollars if it is tail. You start with $0, it is possible to get negative balance. Now, if you throw the coin 100 times, what is your expected end balance?
I know that E(X=x) = x*P(X=x), but in this case, how do we calculate the expected value?
Hint:
$$E\left[\sum_{i=1}^n X_i\right]=\sum_{i=1}^n E\left[X_i\right]$$