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