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