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