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