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