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