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