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