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