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