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