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