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