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