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