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