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