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