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