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