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