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