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