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