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