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