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