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