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