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