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