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