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