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