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