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