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