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