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