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