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