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