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