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