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