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