How Lotteries Work and How Much You Keep If You Win