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