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