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