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