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