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