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