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