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