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