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