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