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