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