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