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