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