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