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