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