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