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