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