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