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