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