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