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