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