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