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