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