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