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