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