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