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