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