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