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