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