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