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