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