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