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