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