Hi Ishaan,
To find the expected value, you will need to take the probabilities for each possible outcome and multiply it by the payoff for that outcome. After doing so, you then need to add these together.
I'll show you what I mean.
The probability of picking a (1) is 1/8 right? And since the payoff for picking a 1 is 1 dollar, we would do:
1 * 1/8 = 1/8
Similarly, for picking a (2), the probability is also 1/8, but since the payoff is 2 dollars, we would do:
2 * 1/8 = 2/8
Continue doing this until you have all of your values. Then add these together.
The resulting value will be how much Alan could "expect" to win each time he plays the game.
Let me know if you have any questions.