Confused in this section.. help appreciated..

If anyone can help with this... is there not a calculator function that will help??

Two examples:

In a lottery 3,000,000 tickets are sold at a dollar a piece. Out of these 12,006 are drawn at random without replacement and awarded prizes of 12,000 $25, 4 $10,000 prize, 1 $50,000 prize and 1 $200,0000 prize. What is the expected value of 1 per week.

Next one,

In a state lottery a three-digit integer is selected randomly. If a player bets $1, on a number, the payoff is $500 minus $1 paid for ticket. Let X equal the payoff of -1 - 499 and find E(X)

Just a heads up I may need help on Bernoulli next.