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