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