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