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