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