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