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