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