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