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