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