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