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