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