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