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