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