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