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