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