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