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