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