Let's count the probability of receiving a winning ticket. For the 25$-ticket we have ,
for the 10000$-ticket it is ,
for both 200000$ and 100000$ - tickets it is .
But for any ticket you should pay a price of 0.5$. So, when buying one ticket, the expected value of your gain is $.