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