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