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