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