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