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