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