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