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