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