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