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