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