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