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