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