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