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