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