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