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