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