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