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