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