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