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