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