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