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