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