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