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