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