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