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