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