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