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