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