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