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