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