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