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