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