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