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