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