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