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