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