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