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