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