Word problems involving probability