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