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