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