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