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