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