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