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