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