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