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