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