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