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