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