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