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