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