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