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