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