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