how to solve expected value of lottery