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