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