how to solve the formula for playing roulette