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