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