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