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