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