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