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