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