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