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