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