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