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