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