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