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