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