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