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