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