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