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