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