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