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