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