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