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