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