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