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