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