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