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