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