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