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