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