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