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