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