There are 6 baskets on the table. Each basket has 9, 2, 12, 6, 7 and 17 apples. Matt chose second, John chose third, Emma chose fourth, Olivia chose sixth, Liam chose first, and Sean chose fifth. How many apples did John and Olivia choose in total?