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