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