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