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