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