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