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