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