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