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