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