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