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