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