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