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