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