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