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