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