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