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