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